package factory;

/**
 * @Author: linKe
 * @Date: 2022/1/15 10:37
 * @FileName: SaucePizza
 * @version: 1.0
 * @Description: 芝士披萨
 */
public class SaucePizza extends Pizza{
    /**
     * 原料工厂
     */
    private PizzaIngredientFactory factory;

    public SaucePizza(PizzaIngredientFactory factory) {
        this.factory = factory;
    }

    public SaucePizza() {
        name = "sauce pizza";
        sauce = factory.getSauce();
    }
}
